<template>
	<view class="content">
		<swiper :indicator-dots="true" class="guideswiper" indicator-active-color="#2353CC">
			<swiper-item item-id="1">
				<view class="swiper-item" >
					<view class="swiper-img">
						<image src="../../static/tabimg/1.png" class="png1"></image>
					</view>
					<view class="swiperitem1">
						科技创新 / 助力发展
					</view>
				</view>
			</swiper-item>
			<swiper-item item-id="2">
				<view class="swiper-item" >
					<view class="swiper-img">
						<image src="../../static/tabimg/2.png" class="png1"></image>
					</view>
					<view class="swiperitem1">
						实时数据 / 轻松掌握
					</view>
				</view>
			</swiper-item>
			<swiper-item item-id="3">
				<view class="swiper-item" >
					<view class="swiper-img">
						<image src="../../static/tabimg/3.png" class="png1"></image>
					</view>
					<view class="swiperitem2" @tap="launchFlag">
						立即体验
					</view>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				experience: '立即体验'
			}
		},
		methods: {
			launchFlag: function(){
				/**
				 * 向本地存储中设置launchFlag的值，即启动标识；
				 */
				uni.setStorage({
						key: 'launchFlag',
						data: true,
				});
				uni.navigateTo({
					url: '/pages/login/login'
				});
				
			}
		}
	}
</script>

<style>
	page,
	.content{
		width: 100%;
		height: 100%;
		background-size: 100% auto;
		padding: 0;
	}
	.guideswiper{
		width: 100%;
		height: 100%;
		background: #FFFFFF;
	}
	.swiper-img image{
		margin: 350rpx auto 0;
		display: block;
	}
	.swiper-item{
		height: 100%;
	}
	.swiperitem1{
		font-size: 30rpx;
		color: #134199;
		text-align: center;
		position: fixed;
		bottom: 22%;
		width: 100%;
	}
	.swiperitem2{
		width: 190rpx;
		height: 70rpx;
		font-size: 30rpx;
		line-height: 70rpx;
		text-align: center;
		border-top-left-radius: 35rpx;
		border-top-right-radius: 35rpx;
		border-bottom-left-radius: 35rpx;
		border-bottom-right-radius: 35rpx;
		border: 2rpx solid #2353CC;
		position: fixed;
		bottom: 22%;
		left: 50%;
		color: #2353CC;
		transform: translateX(-50%);
	}
	
	.png1{
		width: 529rpx;
		height: 347rpx;
	}
	.png2{
		width: 480rpx;
		height: 344rpx;
	}
	.png3{
		width: 491rpx;
		height: 375rpx;
	}

</style>
